import request from '@/utils/back-request';

//获取所有专业（新首页）
export function getCivilYear(data) {
  return request({
    url: '/api-career/college/all/profession',
    method: 'post',
    data
  });
}

//获取区域id对应查询年份
export function getRegionSearchYear(data) {
  return request({
    url: '/api-career/college/region/search/year',
    method: 'post',
    data
  });
}

//获取排名
export function getScoreRank(data) {
  return request({
    url: '/api-career/positionSalary/rank',
    method: 'post',
    data
  });
}

//获取展示分数线
export function getScoreLine(data) {
  return request({
    url: '/api-career/college/show/score/line',
    method: 'post',
    data
  });
}

//院校搜索
export function getSearchCollegeList(data) {
  return request({
    url: '/api-career/campus/college/search',
    method: 'post',
    data
  });
}

//查询专业组列表
export function getProGroupList(data) {
  return request({
    url: '/api-career/college/get/pro/group/list',
    method: 'post',
    data
  });
}

// 查询专业
export function searchMajor(data) {
  return request({
    url: '/api-career/campus/tag/search',
    method: 'post',
    data
  });
}

//获取冲保稳个数
export function getRushSteadyGroupNum(data) {
  return request({
    url: '/api-career/college/get/rush/steady/group/num',
    method: 'post',
    data
  });
}

//我的志愿表列表
export function volunteerList(data) {
  return request({
    url: '/api-career/volunteer/list',
    method: 'post',
    data
  });
}
// 产业一二级列表
export function getIndustries(data) {
  return request({
    url: '/api-career/college/industrys',
    method: 'post',
    data
  });
}
// 三级产业列表(其实是专业）)
export function getIndustryTags(data) {
  return request({
    url: '/api-career/college/industryTags',
    method: 'post',
    data
  });
}
// 产业搜索
export function industrySearch(data) {
  return request({
    url: '/api-career/college/industrySearch',
    method: 'post',
    data
  });
}
// 切换志愿
export function changeVolunteerUse(data) {
  return request({
    url: '/api-career/volunteer/use',
    method: 'post',
    data
  });
}

//批量删除志愿表
export function volunteerBatchDelete(data) {
  return request({
    url: '/api-career/volunteer/batch/delete',
    method: 'post',
    data
  });
}

//复制志愿表
export function volunteerCopy(data) {
  return request({
    url: '/api-career/volunteer/copy',
    method: 'post',
    data
  });
}

// 获取当前志愿表信息
export function getVolunteerCurInfo(data) {
  return request({
    url: '/api-career/volunteer/cur/info',
    method: 'post',
    data
  });
}
// 查询志愿组/专业组列表
export function getVolunteerGroupList(data) {
  return request({
    url: '/api-career/volunteer/group/list',
    method: 'post',
    data
  });
}
// 新增志愿专业--填报
export function volunteerSave(data) {
  return request({
    url: '/api-career/volunteer/save',
    method: 'post',
    data
  });
}
// 学院专业组下专业列表
export function getProByCollegeGroup(data) {
  return request({
    url: '/api-career/college/get/pro/by/college/group',
    method: 'post',
    data
  });
}
// 根据学院查询专业组
export function getProByCollege(data) {
  return request({
    url: '/api-career/college/get/group/by/college',
    method: 'post',
    data
  });
}

// 删除志愿
export function volunteerDelete(data) {
  return request({
    url: '/api-career/volunteer/delete',
    method: 'post',
    data
  });
}
// 拖拽志愿
export function volunteerSort(data) {
  return request({
    url: '/api-career/volunteer/sort',
    method: 'post',
    data
  });
}
// 拖拽志愿
export function volunteerUpdate(data) {
  return request({
    url: '/api-career/volunteer/update',
    method: 'post',
    data
  });
}
// 拖拽志愿
export function getVolunteerRegion(data) {
  return request({
    url: '/api-career/positionSalary/get/volunteer/region/conf',
    method: 'post',
    data
  });
}
// 学校详情
export function getCollegeDetail(data) {
  return request({
    url: '/api-career/college/details',
    method: 'post',
    data
  });
}
// 学校每个校区配置详情列表
export function getCollegeCampusList(data) {
  return request({
    url: '/api-career/college/campusList',
    method: 'post',
    data
  });
}
// 学校专业类别列表
export function getCollegeTagTypeList(data) {
  return request({
    url: '/api-career/college/tagType',
    method: 'post',
    data
  });
}
// 学校开设专业列表
export function getCollegeMajorList(data) {
  return request({
    url: '/api-career/college/tags',
    method: 'post',
    data
  });
}
// 学校学科评估列表
export function getCollegeClassList(data) {
  return request({
    url: '/api-career/college/tagRank',
    method: 'post',
    data
  });
}
// 智能填报志愿
export function smartVolunteerFilling(data) {
  return request({
    url: '/api-career/college/smart/volunteer/filling',
    method: 'post',
    data
  });
}
// 收藏/取消志愿表
export function volunteerCollect(data) {
  return request({
    url: '/api-career/volunteer/collect',
    method: 'post',
    data
  });
}
// 收藏夹志愿表列表
export function volunteerCollectList(data) {
  return request({
    url: '/api-career/volunteer/collect/list',
    method: 'post',
    data
  });
}
// 导出志愿表
export function volunteerExport(data) {
  return request({
    url: '/api-career/volunteer/export',
    method: 'post',
    data
  });
}
// 获取导出志愿表结果
export function volunteerExportRes(data) {
  return request({
    url: '/api-career/volunteer/export/res',
    method: 'post',
    data
  });
}
// 一分一段列表接口
export function scoreList(data) {
  return request({
    url: '/api-career/province/score/select/list',
    method: 'post',
    data
  });
}
// 同分列表接口
export function sameScoreList(data) {
  return request({
    url: '/api-career/province/score/select/same-score/list',
    method: 'post',
    data
  });
}
// 推荐志愿城市/类目接口
export function volunteerPercentage(data) {
  return request({
    url: '/api-career/college/volunteer/percentage',
    method: 'post',
    data
  });
}
// 添加存储询条件接口
export function recodeAddOne(data) {
  return request({
    url: '/api-career/college/record/add/one',
    method: 'post',
    data
  });
}
// 获取存储询条件接口
export function recodeSelectOne(data) {
  return request({
    url: '/api-career/college/record/select/one',
    method: 'post',
    data
  });
}

// 获取存储询条件接口
export function getCompetitivenessData(data) {
  return request({
    url: '/api-career/province/score/select/competitiveness',
    method: 'post',
    data
  });
}


// 获取竞争力线型图数据
export function competitivenessScore(data) {
  return request({
    url: '/api-career/province/score/select/competitiveness/score',
    method: 'post',
    data
  });
}


